package cn.ylg.com.baisibudeijie.pro.mine.view;

import android.content.Intent;
import android.view.View;
import android.widget.Button;

import cn.ylg.com.baisibudeijie.R;
import cn.ylg.com.baisibudeijie.pro.base.view.BaseFragment;
import cn.ylg.com.baisibudeijie.pro.login.view.LoginActivity;

/**
 * Created by MyPC on 2016/10/18.
 */
public class MineFragment extends BaseFragment implements View.OnClickListener{

    private Button btn;
    @Override
    public int getContentView() {
        return R.layout.fragment_mine;
    }

    @Override
    public void initContentView(View viewContant) {
        btn = (Button) viewContant.findViewById(R.id.fragment_mine_login_btn);
        btn.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.fragment_mine_login_btn:
                Intent intent = new Intent(getContext(), LoginActivity.class);
                getActivity().startActivity(intent);
                break;
        }
    }
}
